package com.motu.monstercity.server.game.logic;

import com.motu.monstercity.protocol.Common.PBUserItem;

public class RewardItem {
    private int itemId;
    private long itemNum;
    private Object entity;

    public RewardItem(int itemId, long itemNum){
        this.itemId = itemId;
        this.itemNum = itemNum;
    }
    public RewardItem(int itemId,long itemNum, Object entity){
        this.itemId = itemId;
        this.itemNum = itemNum;
        this.entity = entity;
    }

    public int getItemId() {
        return itemId;
    }
    public void setItemId(int itemId) {
        this.itemId = itemId;
    }
    public long getItemNum() {
        return itemNum;
    }
    public void setItemNum(long itemNum) {
        this.itemNum = itemNum;
    }

    public PBUserItem.Builder takeBuilder() {
        PBUserItem.Builder sb = PBUserItem.newBuilder();
        sb.setItemId(getItemId());
        sb.setNum(getItemNum());
        return sb;
    }
    public void setEntity(Object entity) {
        this.entity = entity;
    }
    public Object getEntity() {
        return entity;
    }
}
